package com.rambo.baselib.user.slice;

import com.rambo.baselib.BaseAbilitySlice;
import com.rambo.baselib.ResourceTable;
import com.rambo.baselib.util.ToastUtil;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import ohos.agp.components.Component;

public class RegisterAbilitySlice extends BaseAbilitySlice {


    @Override
    protected int getLayoutResId() {
        return ResourceTable.Layout_ability_register;
    }

    @Override
    protected void initView() {
        super.initView();
        toolbarHolder.setDefaultTitle("注册");
        findComponentById(ResourceTable.Id_btn_register).setClickedListener(new Component.ClickedListener() {
            @Override
            public void onClick(Component component) {
                ToastUtil.toast("芭比Q了");
            }
        });
    }

    @Override
    public void onActive() {
        super.onActive();
    }

    @Override
    public void onForeground(Intent intent) {
        super.onForeground(intent);
    }
}
